﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/NoMenuMaster.Master" AutoEventWireup="true" CodeBehind="Cipher.aspx.cs" Inherits="Besture.UI.Email.Cipher" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
    <div class="main">
		<div class="w980">
        	<table width="100%" class="cipher-tab">
              <tr>
                <td class="cipher-td"><span>*</span> 手机号码：</td>
                <td><input id="txtTelphone" runat="server" minlength="11" maxlength="11" type="text" value="" class="required mobile cipher-in" name="one"/></td>
              </tr>
              <tr class="errortr">
                 <td class="cipher-td">&nbsp;</td>
                 <td>&nbsp;</td>
              </tr>
              <tr>
                <td class="cipher-td"><span>*</span> 验证码：</td>
                <td class="cipher-tds"><input id="txtVailidCode" runat="server" maxlength="6" type="text" value="" class="required cipher-in1" name="one1"/><img id="imgVailidCode" src="/Control/VailidCode.aspx" width="63" height="22"/><a href="javascript:void(0);" onclick="GetVailidCode();">看不清？换一张</a></td>
              </tr>
              <tr class="errortr">
                 <td class="cipher-td">&nbsp;</td>
                 <td>&nbsp;</td>
              </tr>
              <tr>
                <td class="cipher-td">&nbsp;</td>
                <td class="cipher-tda"><asp:Button ID="btnSendMsg" runat="server" Text="发送短信验证码" OnClick="btnSendMsg_Click" /></td>
              </tr>
            </table>
        </div>
	</div>
    <input type="hidden" id="EmailStatus" runat="server" />
    <script type="text/javascript">
        $(function () {
            $("#aspnetForm").validate({
                errorPlacement: function (error, element) {
                    error.appendTo(element.parent().parent().next(".errortr").children("td:eq(1)"));
                }
            });
        });

        GetVailidCode();

        function GetVailidCode() {
            var i = Math.random() * 100;
            document.getElementById("imgVailidCode").src = "/Control/VailidCode.aspx?rnd=" + i;
        }
</script>
</asp:Content>
